package com.example.text.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.text.entity.AdminRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 规则表
 *
 * @author hjj
 * @email 1041914134@qq.com
 * @date 2020-06-23 16:02:15
 */
@Mapper
public interface AdminRoleDao extends BaseMapper<AdminRole> {

    //根据Rids的集合，找到（Rid=AdminRole.id)符合的所有数据
    List<AdminRole> findAllListByRids(@Param("Rids") List<Integer> Rids);

    //查询所有规则,按照降序
    IPage<AdminRole> selectPageVo(Page<AdminRole> page);

    //查询所有规则
    List<AdminRole> findAll();
}
